// 拆出来 是为了后期维护特定的路由规则方便
import Layout from '@/layout'
// 配置管理
export default {
  path: '/config',
  component: Layout,
  redirect: '/config/plcConfig',
  name: 'config',
  alwaysShow: true,
  meta: {
    title: 'config',
    icon: 'el-icon-setting',
    affix: false
  },
  children: [
    {
      path: 'PlcConfig',
      component: () => import('@/views/config/plcConfig.vue'), // Parent router-view
      name: 'PlcConfig',
      meta: { title: 'PlcConfig', icon: 'el-icon-link', affix: false }
    },
    {
      path: 'BasicConfig',
      component: () => import('@/views/config/basicConfig.vue'),
      name: 'BasicConfig',
      meta: { title: 'BasicConfig', icon: 'el-icon-link', affix: false }
    },
    {
      path: 'ErrorExplanation',
      component: () => import('@/views/config/errorExplanation.vue'),
      name: 'ErrorExplanation',
      meta: { title: 'ErrorExplanation', icon: 'el-icon-link', affix: false }
    }
  ]
}
